const {db} = require("./connectDB");
const questionSchema = require("../schema/question");

// 通过 db 对象创建操作 admins 数据库的模型对象
const Question = db.model("questions", questionSchema);
Question.collection.createIndex({quesName: 1}, {unique: true});

module.exports = Question;